package com.atguigu04._throw.ex2;

public class soutstep {
    public static void main(String[] args)  {
        try {
            m1();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
            m2();
    }
    static void m1()throws Exception{
        try{
            System.out.println("进入方法1");
            throw new Exception("1");
        }finally{
            System.out.println("1finally");
        }
    }

    static void m2(){
        try{
            System.out.println("进入方法2");
            return;
        }finally{
            System.out.println("2finally");
        }
    }
}
